@import "base.less";

#update_results {
  display: none;
}

aside {
  width: 240px;
  float: left;
  display: inline-block;

  form.search {
    .input-append {
      input[type=text] {
        width: 198px;
      }
      .btn {
        margin-left: -5px;
      }
    }
  }

  section {
    margin-top: 20px;
    border: 1px solid #eee;

    .control-group {
      padding-left: 10px;
    }

    ul {
      padding: 0 10px;
      font-size: 70%;

      &.multi-column {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
      }
    }

    h3 {
      background-color: #eee;
      margin: 0;
      padding: 5px 10px;
      font-size: 110%;
    }
  }
}

#countries {
  display: none;
}

#playlists {
  .control-group {
    margin-top: 10px;
  }

  select {
    margin: 5px 0 10px 5px;
  }
}

#partners {
  input[type=text] {
    width: 97%;
    border-top: 1px solid #ccc;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 3px #ddd;
  }

  .control-group {
    margin-bottom: 0;
    padding-bottom: 10px;
  }
}

#main {
  margin-left: 280px;

  section.header {
    margin: 0 0 20px 0;
    position: relative;

    h3 {
      margin: 0;
      padding: 0;
    }

    #geo_link {
      float: right;
      margin-top: 3px;
      padding: 5px 10px;
      .border-radius(5px);
      vertical-align: middle;

      b.caret {
        border-top-color: #08C;
      }

      &:hover {
        text-decoration: none;
        background-color: #eee;
      }
    }

    #geo_restrict {
      left: auto;
      top: 40px;
      right: 35px;

      ul {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
      }
    }

    ul.nav {
      float: right;
    }

  }

  table {
    tr {
      td:first-child {
        width: 170px;

        a {
          display: inline-block;
          position: relative;

          p {
            position: absolute;
            margin: 0;
            padding: 2px 5px;
            font-size: 80%;
            background-color: #222;
            color: #fff;
            bottom: 0;
            right: 0;
            .border-radius(5px 0 0 0);
          }

          img {
            width: 160px;
          }
        }
      }

      td {
        position: relative;

        h3 {
          height: 30px;
          overflow: hidden;
        }

        p.meta {
          float: right;
          font-size: 80%;
          margin-left: 10px;
          line-height: 1.2em;
          text-align: right;

          span {
            display: block;
          }
        }

        p.desc {
          display: none;
          height: 20px;
          overflow: hidden;
        }

        p.cats {
          height: 20px;
          overflow: hidden;
        }

        p.tags {
          font-style: italic;
          font-size: 90%;
          height: 20px;
          overflow: hidden;

          a {
            font-style: normal;
          }
        }

        p a:first-child {
          margin-right: 10px;
        }

        p.geo {
          display: inline-block;
          overflow: hidden;
          height: 20px;

          b {
            margin-right: 5px;
            font-weight: normal;
            font-size: 80%;
          }
        }
      }

      td:nth-child(3) {
        border-left: 1px solid #ddd;
      }
    }
  }

  form.modal-form {
    display: none;
    position: absolute;
    z-index: 10;
    left: 5px;
    top: 67px;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #ccc;
    .border-radius(5px);
    padding: 10px;
    .box-shadow(1px 1px 3px #ccc);

    &.playlists {
      top: 96px;
    }

    &.playlists ul {
      list-style-type: none;
      -moz-column-count: 2;
      -webkit-column-count: 2;
      column-count: 2;
      margin: 0;
      padding: 0;

      li {
        list-style-type: none;
        margin: 0;
        padding: 0;

        label, input {
          display: inline;
        }

        input {
          margin-right: 5px;
          margin-bottom: 5px;
        }
      }
    }

    &:before {
      content: '';
      display: inline-block;
      border-left:   7px solid transparent;
      border-right:  7px solid transparent;
      border-bottom: 7px solid #ccc;
      border-bottom-color: @dropdownBorder;
      position: absolute;
      top: -7px;
      left: 9px;
    }

    &:after {
      content: '';
      display: inline-block;
      border-left:   6px solid transparent;
      border-right:  6px solid transparent;
      border-bottom: 6px solid @dropdownBackground;
      position: absolute;
      top: -6px;
      left: 10px;
    }
  }
}

.modal {
  width: 600px;
  height: 700px;
  margin: -350px 0 0 -300px;

  .modal-body {
    overflow: visible;

    iframe {
      width: 100%;
    }

    h3 {
      margin-top: 10px;
      margin-bottom: 10px;
      line-height: 1.2em;
    }

    p {
      max-height: 70px;
      overflow: auto;
      font-size: 85%;
    }

    div {
      border-top: 1px solid #eee;
      padding-top: 10px;
      margin-top: 10px;

      &.tags p {
        font-size: 80%;
      }

      form {
        display: inline-block;
        margin-left: 10px;

        &.tags {
          margin-left: 80px;

          input[type=text] {
            font-size: 80%;
            padding: 1px 2px;
          }
        }

        &.playlists {
          ul {
            li label input {
              margin-right: 5px;
            }
          }
        }
      }

      h4 {
        display: inline-block;
        vertical-align: top;
        font-weight: normal;
        font-size: 100%;
        width: 70px;
      }

      p {
        display: inline-block;
        margin-left: 10px;
        width: 470px;
        font-size: 100%;
        height: auto;
        overflow: visible;

        span {
          display: inline-block;
          margin-bottom: 5px;
        }
      }
    }
  }

  a.close {
    position: absolute;
    left: 590px;
    z-index: 1000;
  }
}